package com.ruoyi.user.service.impl;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.user.mapper.UserSealTimeMapper;
import com.ruoyi.user.domain.UserSealTime;
import com.ruoyi.user.service.IUserSealTimeService;

/**
 * 处罚用户时间Service业务层处理
 * 
 * @author DEREK
 * @date 2023-05-10
 */
@Service
public class UserSealTimeServiceImpl extends ServiceImpl<UserSealTimeMapper, UserSealTime> implements IUserSealTimeService 
{
    @Autowired
    private UserSealTimeMapper userSealTimeMapper;

    /**
     * 查询处罚用户时间
     * 
     * @param id 处罚用户时间主键
     * @return 处罚用户时间
     */
    @Override
    public UserSealTime selectUserSealTimeById(Long id)
    {
        return userSealTimeMapper.selectUserSealTimeById(id);
    }

    /**
     * 查询处罚用户时间列表
     * 
     * @param userSealTime 处罚用户时间
     * @return 处罚用户时间
     */
    @Override
    public List<UserSealTime> selectUserSealTimeList(UserSealTime userSealTime)
    {
        return userSealTimeMapper.selectUserSealTimeList(userSealTime);
    }

    /**
     * 新增处罚用户时间
     * 
     * @param userSealTime 处罚用户时间
     * @return 结果
     */
    @Override
    public int insertUserSealTime(UserSealTime userSealTime)
    {
        return userSealTimeMapper.insertUserSealTime(userSealTime);
    }

    /**
     * 修改处罚用户时间
     * 
     * @param userSealTime 处罚用户时间
     * @return 结果
     */
    @Override
    public int updateUserSealTime(UserSealTime userSealTime)
    {
        return userSealTimeMapper.updateUserSealTime(userSealTime);
    }

    /**
     * 批量删除处罚用户时间
     * 
     * @param ids 需要删除的处罚用户时间主键
     * @return 结果
     */
    @Override
    public int deleteUserSealTimeByIds(Long[] ids)
    {
        return userSealTimeMapper.deleteUserSealTimeByIds(ids);
    }

    /**
     * 删除处罚用户时间信息
     * 
     * @param id 处罚用户时间主键
     * @return 结果
     */
    @Override
    public int deleteUserSealTimeById(Long id)
    {
        return userSealTimeMapper.deleteUserSealTimeById(id);
    }
}
